package models

import kotlinx.serialization.Serializable

@Serializable
data class Component(
    val id: Int,
    val name: String,
    val type: String,
    val specifications: String,
    val computerId: Int? = null,
    val purchaseDate: Long,
    val location: Location,
    val serialNumber: String,
    val verifiedBy: User,
    val lastVerifiedAt: Long,
    val createdAt: Long,
    val createdBy: User
)

@Serializable
data class CreateComponentRequest(
    val name: String,
    val type: String,
    val specifications: String,
    val purchaseDate: Long,
    val computerId: Int? = null,
    val locationId: Int,
    val serialNumber: String
)